package xiaohu.day7.HJ74;

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        //分别记录引号和参数的数量
        int count = 0;
        int num = 0;
        StringBuilder b = new StringBuilder();
        for(int i = 0; i < str.length(); i++){
            char c = str.charAt(i);
            b.append(c);
            if(c == ' ' && count % 2 == 0){
                b.append('\n');
                num++;
            }else if(c == '\"'){
                count++;
            }
        }
        System.out.println(num+1);
        System.out.println(b.toString().replace("\"", ""));
    }
}
